﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BudgetRight.Data.Models;

namespace BudgetRight.Data.Adapters
{
    public class CategoryDbAdapter : ICategoryDbAdapter
    {
        #region ICategoryDbAdapter Members

        public ICategoryEntity GetCategory(int nodeId)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<ICategoryEntity> GetCategoryChildren(int nodeId)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<ICategoryEntity> GetCategoryDescendants(int nodeId)
        {
            return new[] {
                new CategoryEntity { Id = 1, Name = "Expenses", BudgetAmount = null },
                new CategoryEntity { Id = 2, Name = "Food", BudgetAmount = null },
                new CategoryEntity { Id = 3, Name = "Groceries", BudgetAmount = 25.00M },
                new CategoryEntity { Id = 4, Name = "Dining Out", BudgetAmount = 75.00M }
            };
        }

        public IEnumerable<ICategoryEntity> GetCategoryAncestry(int nodeId)
        {
            throw new NotImplementedException();
        }

        public ICategoryEntity GetCategoryParent(int nodeId)
        {
            throw new NotImplementedException();
        }

        public ICategoryEntity Save(ICategoryEntity entity)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
